//
//  ImageManager.h
//  StarBugs
//
//  Created by ?? ? on 12/28/11.
//  Copyright 2011 antisword@playorca.com. All rights reserved.
//

#ifndef __IMAGE_MANAGER_H__
#define __IMAGE_MANAGER_H__

#include "cocos2d.h"

enum{
	kImagesheet_GameSource,
	kImageSheet_result,
	kImageSheet_stageSelect,
	kImagesheet_Ball,
	kImagesheet_character_die,

	kImageSheet_character_rebirth,
	kImageSheet_effect_boom,
	kImageSheet_effect_clear,
	kImageSheet_pauseSource,
	kImageSheet_chapterSource,

	kImageSheet_rockImage,
	kImageSheet_characterMotion,
	kImageSheet_bubbleAni,
	kImageSheet_target,

	kImageSheet_tutorial,
	kImageSheet_chapterSpace,
	kImageSheet_mainmenu,
	kImageSheet_effect_clear2,
	kImagesheet_setting, 

	kImageSheet_intro,
	kImageSheet_loading,
	kImageSheet_freemium,
	kImageSheet_characterMotion2,
	kImageSheet_kor,
#ifdef _ANIMATIONTEST_
	kImageSheet_hero_sword,
#endif
	kImageSheet_max,
};

#ifdef _ANIMATIONTEST_
enum{
	kAnimation_hero_swordman,
};
#endif


class ImageManager{
public:

	static void openXml(int num);
	static void closeXml(int num);
	static cocos2d::CCSprite* getSpriteWithXml2(int num,const char* imageName);
	static cocos2d::CCSpriteFrame* getFrameWithXml2(int num,const char* imageName);

#ifdef _ANIMATIONTEST_
	static int setAnimation(cocos2d::CCSprite *mainSprite, cocos2d::CCArray *array, int aninum, const char* aniName, int frameNum, bool reorderFlg);
#endif
};
#endif//__IMAGE_MANAGER_H__